package com.eregg.spring.cloud.microserviceconfigclinet.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by e on 2017/11/10
 *
 * @author <a href="http://eregg.com">eregg</a>
 */
@RestController
public class ConfigClinetController {

    @Value("${profile}")
    private String profile;

    @GetMapping("/profile")
    public String hello(){
        return profile;
    }
}
